package jy.hibernate.beans;

import java.util.Date;
import java.util.Set;

/**
 * output_store  entity
 * @author tingzi
 *
 */
public class Output_store implements java.io.Serializable{
	private static final long serialVersionUID = 5910259201442175352L;
	 //Fields
	private Integer output_store_id;//出库单id 自增长
	private String output_number;//商品出库单编号
	private Date output_date=new Date("1870-00-00");//商品出库时间
	private String transport_to="";//运到哪里去
	private Client client;//来自于哪个公司
	private String transportation="";//货物运输方式
	private Employee employee;//经手人（员工）
	private Integer confirm=0;//确认与否（确认后此入库单就生效） 确认1，未确认0，默认为0
	private Set<Output_detail > output_details;
	//full constructor
	
	public Set<Output_detail> getOutput_details() {
		return output_details;
	}

	public void setOutput_details(Set<Output_detail> output_details) {
		this.output_details = output_details;
	}

	public Output_store(String output_number, Date output_date,
			String transport_to, Client client, String transportation,
			Employee employee, Integer confirm) {
		super();
		this.output_number = output_number;
		this.output_date = output_date;
		this.transport_to = transport_to;
		this.client = client;
		this.transportation = transportation;
		this.employee = employee;
		this.confirm = confirm;
	}
	
	@Override
	public String toString() {
		
		return "output_number:"+output_number+"/toutput_date:"+output_date+"/ttransport_to:"+transport_to
		       +"/ttransportation:"+transportation+"/tclient_name"+client.getUser_name()+"/temployee"
		       +employee.getName()+"/tconfirm:"+confirm;
	}

	public Integer getOutput_store_id() {
		return output_store_id;
	}
	public void setOutput_store_id(Integer output_store_id) {
		this.output_store_id = output_store_id;
	}
	public String getOutput_number() {
		return output_number;
	}
	public void setOutput_number(String output_number) {
		this.output_number = output_number;
	}
	public Date getOutput_date() {
		return output_date;
	}
	public void setOutput_date(Date output_date) {
		this.output_date = output_date;
	}
	public String getTransport_to() {
		return transport_to;
	}
	public void setTransport_to(String transport_to) {
		this.transport_to = transport_to;
	}
	public Client getClient() {
		return client;
	}
	public void setClient(Client client) {
		this.client = client;
	}
	public String getTransportation() {
		return transportation;
	}
	public void setTransportation(String transportation) {
		this.transportation = transportation;
	}
	public Employee getEmployee() {
		return employee;
	}
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
	public Integer getConfirm() {
		return confirm;
	}
	public void setConfirm(Integer confirm) {
		this.confirm = confirm;
	}
}
